﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="ChangePassword.aspx.cs" Inherits="WebTeamplate.Admin_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="small" border="0" cellpadding="0" cellspacing="0" width="100%">
       
        <tr class="rowDetail" align="right">
            <td colspan="2" class="dvtCellInfo">
                (<span class="commentRequireInput">*</span>): <span class="commentRequireInputText">
                    <%=Resources.Resource.LABEL_COMMENT_REQUIRE %>
                </span>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2" class="dvtCellErrorMessage">
                <asp:ValidationSummary ID="vsumCategory" CssClass="validateSumary" DisplayMode="BulletList"
                    runat="server" ShowMessageBox="true" ShowSummary="false" />
                <asp:Label ID="lblErrorMessage" runat="server" CssClass="validateSumary"></asp:Label>
            </td>
        </tr>
         <tr class="rowDetail">
            <td class="dvtCellLabel" >
                <asp:Label ID="lblOldPass" runat="server" Text="Mật khẩu cũ"></asp:Label>(<span class="commentRequireInput">*</span>):
            </td>
            <td class="dvtCellInfo">
                <asp:TextBox ID="txtOldPass" runat="server" Width="150px" TextMode="Password" MaxLength="50"
                    onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"
                    CssClass="detailedViewTextBox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="refvOldPass" ControlToValidate="txtOldPass" runat="server"
                    SetFocusOnError="true" Display="Dynamic">*</asp:RequiredFieldValidator>
               
            </td>
        </tr>
        <tr class="rowDetail">
            <td class="dvtCellLabel" style="width: 150px">
                <asp:Label ID="lblPassword" runat="server" Text="Mật khẩu"></asp:Label>(<span class="commentRequireInput">*</span>):
            </td>
            <td class="dvtCellInfo">
                <asp:TextBox ID="txtPassword" runat="server" Width="150px" TextMode="Password" MaxLength="50"
                    onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"
                    CssClass="detailedViewTextBox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="refvPassWord" ControlToValidate="txtPassword" runat="server"
                    SetFocusOnError="true" Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regvPassword" runat="server" SetFocusOnError="true"
                    ControlToValidate="txtPassword" ErrorMessage="RegularExpressionValidator" Display="Dynamic"
                    ValidationExpression="\w{4,8}">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr class="rowDetail">
            <td class="dvtCellLabel">
                <asp:Label ID="lblConfirmPassword" runat="server" Text="Xác nhận mật khẩu"></asp:Label>(<span
                    class="commentRequireInput">*</span>):
            </td>
            <td class="dvtCellInfo">
                <asp:TextBox ID="txtConfirmPass" runat="server" Width="150px" TextMode="Password"
                    MaxLength="50" onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"
                    CssClass="detailedViewTextBox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="refvConfirmPass" ControlToValidate="txtConfirmPass"
                    runat="server" SetFocusOnError="true" Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cpvConfirmpass" runat="server" SetFocusOnError="true" Display="Dynamic"
                    ErrorMessage="CompareValidator" ControlToValidate="txtConfirmPass" ControlToCompare="txtPassword">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="height:40px;" valign="bottom">
                    <asp:Button ID="btnSave" runat="server" CssClass="crmbutton 
small edit" Text="Save" OnClick="btnSave_Click" CausesValidation="true" />
                   
                
            </td>
        </tr>
    </table>
</asp:Content>
